<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title><spring:message code="page.therapist.header" /></title>
    </head>

    <body>
        <script type="text/javascript">
            $(document).ready(function() {
                $("#menu_therapist").addClass("active");
            });
        </script>

        <!-- navbar -->
        <jsp:include page="../header.jsp" />

        <!-- context -->
        <div class="container">
            <div class="row-fluid">
                <div class="span6">
                    <h1><spring:message code="page.therapist.edit.header" /></h1>
                </div>
                <div class="span6">
                </div>
            </div>
            <div class="row-fluid">
                <form:form method="post" class="form-horizontal well" action="edit" commandName="entity">
                    <div class="control-group">
                        <form:label cssClass="control-label" path="email">
                            <spring:message code="page.therapist.edit.form.email" />
                        </form:label>
                        <div class="controls">
                            <form:input path="email" />
                        </div>
                    </div>

                    <div class="control-group">
                        <form:label cssClass="control-label" path="name">
                            <spring:message code="page.therapist.edit.form.name" />
                        </form:label>
                        <div class="controls">
                            <form:input path="name" />
                        </div>
                    </div>

                    <div class="control-group">
                        <form:label cssClass="control-label" path="password">
                            <spring:message code="page.therapist.edit.form.password" />
                        </form:label>
                        <div class="controls">
                            <form:password path="password" />
                        </div>
                    </div>

                    <div class="control-group">
                        <form:label cssClass="control-label" path="qualification">
                            <spring:message code="page.therapist.edit.form.qualification" />
                        </form:label>
                        <div class="controls">
                            <form:input path="qualification" />
                        </div>
                    </div>

                    <div class="control-group">
                        <form:label cssClass="control-label" path="leader">
                            <spring:message code="page.therapist.edit.form.leader" />
                        </form:label>
                        <div class="controls">
                            <form:checkbox path="leader" />
                        </div>
                    </div>

                    <div class="control-group">
                        <form:label cssClass="control-label" path="description">
                            <spring:message code="page.therapist.edit.form.description" />
                        </form:label>
                        <div class="controls">
                            <form:input path="description" />
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="controls pull-right">

                            <div class="btn-group pull-right">
                                <a href="list" class="btn" type="button">
                                    <i class="icon-list"></i>
                                    <spring:message code="button.cancel" />
                                </a>
                                <form:button class="btn btn-primary" >
                                    <i class="icon-ok"></i>
                                    <spring:message code="button.ok" />
                                </form:button>
                            </div>
                        </div>
                    </div>
                    <form:errors />
                </form:form>
            </div>
        </div>
    </body>
</html>
